﻿@model Romantics.Models.HikeViewModel
@using Romantics
@{
    var Action = ((string)ViewContext.RouteData.Values["Action"]);
    var Controller = ((string)ViewContext.RouteData.Values["Controller"]);
    var photoAlbum = Model.PhotoAlbumItem.PhotoAlbum;
    var photoAlbumItem = Model.PhotoAlbumItem;
    ViewBag.Title = photoAlbum.Name;
}
@section RenderMeta{
    <meta name="description" content="@Model.Options.MetaDescription"/>
    <meta name="author" content="@Model.Options.Author"/>
    @{
        var meta = photoAlbum.Meta ?? Model.Options.MetaKeywords;
        <meta name="keywords" content="@meta" />
    }
}
<div id="content">
    <div class="post">
        <div class="post-meta">
            <div class="row">
                <div class="post-title">
                    <h2>@Html.PhotoAlbumLink(photoAlbum)</h2>
                </div>
                <!-- AddThis -->
                <div class="share-links">
                    @Html.Partial("_AddThis", photoAlbumItem)
                </div>
            </div>
            <div class="row">
                <div class="post-category">
                    <span>Катогория:&nbsp;</span>@Html.CategoryLink(photoAlbum.Hike.Category, Controller)
                </div>
                <div class="post-category">
                    <span>Регион:&nbsp;</span>@Html.RegionLink(photoAlbum.Hike.Region, Controller)
                </div>
                <!-- DISPLAY THE COMMENTS COUNT -->
                <div class="no-of-comments">
                    <a href="@string.Format("{0}#disqus_thread", photoAlbumItem.Href(Url))" data-disqus-identifier="@string.Format("{0}", photoAlbumItem.Href(Url))"></a>
                </div>
            </div>
            <div class="row">
                <div class="post-category">
                    <span>Поход:&nbsp;</span>@Html.HikeLink(photoAlbum.Hike)
                </div>
            </div>
            <div class="posted-date">
                @{
                    if (photoAlbum.Hike.Duration > 1)
                    {
                    <span>С&nbsp;</span>@photoAlbum.Hike.StartDate.ToString("d")<span>&nbsp;по&nbsp;</span>@photoAlbum.Hike.EndDate.ToString("d")
                    }
                    else
                    {
                    @photoAlbum.Hike.StartDate.ToString("d")
                    }
                }
            </div>
        </div>
        <div class="post-body">
            @{
                <div class="post-album active">
                    <div class="xlarge">
                        <img src="@photoAlbumItem.XLarge" border="0" />
                    </div>
                </div>
                @Html.Raw(photoAlbumItem.Description)
            }
        </div>
    </div>
    @Html.Partial("_DisqusComment", photoAlbumItem)
</div>
